package com.starnet.yarnmonitor.yarn.vo.param;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.annotation.Nullable;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class YarnWarnOptionUpdateParam {
    @NotNull
    private Long id;
    /**
     * 监控阈值
     */
    @Min(message = "监控阈值不能为负数", value = 0)
    private Double value;

    /**
     * 告警描述
     */
    @Length(max = 30,message = "description长度不可超出30")
    private String description;

    /**
     * 是否开启
     */

    private Boolean isOpen;

}
